<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>MQSeries MQPUT1</title>
 </head>
 <body class="docs"><div id="layout">
  <div id="layout-content"><div id="function.mqseries-put1" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">mqseries_put1</h1>
  <p class="verinfo">(PECL mqseries &gt;= 0.10.0)</p><p class="refpurpose"><span class="refname">mqseries_put1</span> &mdash; <span class="dc-title">MQSeries MQPUT1</span></p>

 </div>
 
 <div class="refsect1 description" id="refsect1-function.mqseries-put1-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>mqseries_put1</strong></span>
    ( <span class="methodparam"><span class="type">resource</span> <code class="parameter">$hconn</code></span>
   , <span class="methodparam"><span class="type">resource</span> <code class="parameter reference">&$objDesc</code></span>
   , <span class="methodparam"><span class="type">resource</span> <code class="parameter reference">&$msgDesc</code></span>
   , <span class="methodparam"><span class="type">resource</span> <code class="parameter reference">&$pmo</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$buffer</code></span>
   , <span class="methodparam"><span class="type">resource</span> <code class="parameter reference">&$compCode</code></span>
   , <span class="methodparam"><span class="type">resource</span> <code class="parameter reference">&$reason</code></span>
   ) : <span class="type"><span class="type void">void</span></span></div>

  <p class="para rdfs-comment">
   The
   <span class="function"><strong>mqseries_put1()</strong></span>
   (MQPUT1) call puts one message on a queue. The queue need not be open.
  </p>
  <p class="para">
   You can use both the <span class="function"><a href="mqseries_put.html" class="function">mqseries_put()</a></span> and <span class="function"><strong>mqseries_put1()</strong></span>
   calls to put messages on a queue; which call to use depends on the circumstances.
   Use the <span class="function"><a href="mqseries_put.html" class="function">mqseries_put()</a></span> (MQPUT) call to place multiple messages on the same queue.
   Use the <span class="function"><strong>mqseries_put1()</strong></span> (MQPUT1) call to put only one message on a queue.
   This call encapsulates the MQOPEN, MQPUT, and MQCLOSE calls into a single call, minimizing the
   number of calls that must be issued.
  </p>
 </div>

 
 <div class="refsect1 parameters" id="refsect1-function.mqseries-put1-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>

    
     <dt>

      <code class="parameter">hConn</code>
     </dt>

     <dd>

      <p class="para">Connection handle.</p>
      <p class="para">This handle represents the connection to the queue manager.</p>
     </dd>

    
    
     <dt>

      <code class="parameter">objDesc</code>
     </dt>

     <dd>

      <p class="para">Object descriptor. (MQOD)</p>
      <p class="para">
       This is a structure which identifies the queue to which the message is
       added.
      </p>
     </dd>

    
    
     <dt>

      <code class="parameter">msgDesc</code>
     </dt>

     <dd>

      <p class="para">Message descriptor (MQMD).</p>
     </dd>

    
    
     <dt>

      <code class="parameter">pmo</code>
     </dt>

     <dd>

      <p class="para">Put message options (MQPMO).</p>
     </dd>

    
    
    
     <dt>

      <code class="parameter">compCode</code>
     </dt>

     <dd>

      <p class="para">Completion code.</p>
     </dd>

    
    
     <dt>

      <code class="parameter">reason</code>
     </dt>

     <dd>

      <p class="para">Reason code qualifying the compCode.</p>
     </dd>

    
   </dl>

  </p>
 </div>

 
 <div class="refsect1 returnvalues" id="refsect1-function.mqseries-put1-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">没有返回值。</p>
 </div>

 
 <div class="refsect1 seealso" id="refsect1-function.mqseries-put1-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"><span class="function"><a href="mqseries_conn.html" class="function" rel="rdfs-seeAlso">mqseries_conn()</a> - MQSeries MQCONN</span></li>
    <li class="member"><span class="function"><a href="mqseries_connx.html" class="function" rel="rdfs-seeAlso">mqseries_connx()</a> - MQSeries MQCONNX</span></li>
    <li class="member"><span class="function"><a href="mqseries_open.html" class="function" rel="rdfs-seeAlso">mqseries_open()</a> - MQSeries MQOPEN</span></li>
    <li class="member"><span class="function"><a href="mqseries_get.html" class="function" rel="rdfs-seeAlso">mqseries_get()</a> - MQSeries MQGET</span></li>
   </ul>
  </p>
 </div>

</div></div></div></body></html>